package com.jt.controller;

import com.jt.service.ShoppingService;
import com.jt.vo.ShoppingVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@CrossOrigin
public class ShoppingController {
@Autowired
    private ShoppingService shoppingService;

@RequestMapping("/shoppingAdd")
    public void shoppingAdd(@RequestBody ShoppingVo shoppingVo){
        shoppingService.ShoppingAdd(shoppingVo);
    }
}
